﻿@{
    Layout = "../Shared/_InnerPage.cshtml";
}
@model XoohooViewModelItem<PermissionInput>
@section TitleContent{
    @Html.SiteTitle("系统管理", "用户管理", "权限管理", "权限编辑")
}
@section NavigationContent
{
    当前位置：系统管理 &gt;&gt; 系统公告
}
@{
    PermissionInput permissionInput = Model.Item;
    SelectList permissions = Model.GetModelItem<SelectList>("Permissions");
    var inputStyle = new { @class = "input" };
    Html.BeginRouteForm("Admin.Membership.User.PermissionSave", FormMethod.Post, new { @id = "PermissionEditForm", @name = "PermissionEditForm" });
}
    <table cellpadding="4" cellspacing="0" class="tbl">
        <tr>
            <td class="tit">
                所属权限：
            </td>
            <td class="con">
                @Html.DropDownListFor(permissionInput,item=>item.ParentID, permissions,"-请选择-")
            </td>
            <td>
            </td>
        </tr>
        <tr>
            <td class="tit">
                所属模块：
            </td>
            <td class="con">
                @Html.TextBoxFor(permissionInput, item => item.ModuleName, inputStyle)
            </td>
            <td>
                @Html.ValidationMessageFor(permissionInput, item => item.ModuleName, "请输入所属模块")
            </td>
        </tr>
        <tr>
            <td class="tit">
                权限名称：
            </td>
            <td class="con">
                @Html.TextBoxFor(permissionInput, item => item.PermissionName, inputStyle)
            </td>
            <td>
                @Html.ValidationMessageFor(permissionInput, item => item.PermissionName, "请输入权限名称")
            </td>
        </tr>
        <tr>
            <td class="tit">
            </td>
            <td>
                @Html.ImageButton("btnSubmit", "btnSubmit", "Styles/Images/btnSubmit.jpg")
            </td>
            <td>
            </td>
        </tr>
    </table>
@{Html.EndForm();}
